home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_PRO / BCWINDOW.ZIP;1 / README.1ST < prev    next >
Encoding:
Text File  |  1989-01-24  |  3.3 KB  |  115 lines

  1.  
  2.  
  3.  
  4.  
  5.                      popup windows
  6.             designed and written by
  7.                    bill crum
  8.  
  9.  
  10.  
  11.  
  12.  
  13.     these routines were written while attending advanced c courses
  14. at mission college.  no warranty is implied or given as there is no charge 
  15. for using them. i am making them available to those that can use them in
  16. hopes that it will help my career in programming (i am looking for work).
  17. if you use these routines i would appreciate acknowledgment, but not required.
  18.  
  19.     
  20.     messages can be sent to me through pdse (408)-745-0880. 
  21.  
  22. the following files are included.
  23.  
  24. WINDOW.LIB    library of routines.
  25. WINDOW.C      source file of routines.
  26. SAMPLE.C      sample program to use routines.
  27. WINDOWS.GLO   needed to define global variables.
  28. README.1ST    this file.
  29. WINDOWS.H     standard defines.
  30. SAMPLE.EXE    compiled sample routine.
  31. LINK.BAT      use this to link to library. link nameoffile
  32.  
  33.  
  34.  
  35.  
  36.  
  37.         Window routines for turbo c v2.0 .  Designed by Bill Crum.       
  38.             
  39.  
  40.  
  41.                                                               
  42. void get_video_mode (void) 
  43.          sets up screen addresses and colors if needed. MUST be run first. 
  44.  
  45.  
  46. struct WINDOW *push_window (int x, int y, int width, int length, int type,
  47.     int border, char *atr, char *title, char window_background) 
  48.          puts window to the screen and creates pointer for other routines.
  49.  
  50.  
  51. void push (struct WINDOW *window) 
  52.          puts window to screen with window pointer. 
  53.  
  54.  
  55. void pop (struct WINDOW *window)
  56.          removes window from screen restores screen. 
  57.  
  58.  
  59. void cursor_off(void)     turns off cursor.                    
  60.  
  61. void cursor_on(void)      turns on cursor.                                 
  62.  
  63.  
  64. void clr_window(struct WINDOW *window)
  65.          clear_screen for window pointed to.       
  66.  
  67.  
  68. void w_printf(struct WINDOW *window, int x, int y, char *string, char attr)
  69.              pseudo printf for window pointed to.       
  70.  
  71. void close_wind (struct WINDOW *window)
  72.          clears window pointer and returns memory to dos. 
  73.  
  74.  
  75. void scroll_window (struct WINDOW *window, char up_down)
  76.          moves window screen up or down 1 line.    
  77.  
  78.  
  79. void save_screen (void)      full screen save to buffer.     
  80.  
  81.  
  82. void restore_screen (void)   returns buffer saved to screen.   
  83.  
  84.  
  85. void explode_frame (struct WINDOW *window)
  86.         makes a window that appears to expand from zero.
  87.  
  88.  
  89. void unexplode_frame (struct WINDOW *window)
  90.         shrinks window to zero size.  
  91.  
  92.  
  93.  
  94. void draw_frame (int x, int y, int width, int length, int type, char *attr,
  95.             char *title, char background_color)
  96.         creates the window border.         
  97.  
  98.  
  99. void clear_frame (char color, int x, int y, int width, int length)
  100.         erases the window border.        
  101.  
  102.  
  103. void f_write (unsigned int x, unsigned int y, char attr, char *st)
  104.                       direct writes to screen memory.      
  105.  
  106.  
  107. int getchx (void)       returns hot key values by adding 300 to ascii.  
  108.                                                                           **
  109.  
  110. **    All the routines were written by myself in advanced c class except    **
  111. **    for two which was taken from the book 'turbo c developers library'.   **
  112. **    I am supplying the source in hopes of impressing someone into hiring  **
  113. **    a junior level programmer.                                            */
  114.  
  115.